Skip to content

Clean up v5 SDK dependencies - #2800

Merged
olanod merged 4 commits into
v5.xfrom
chore/v5-contract-interfaces
Nov 6, 2026
Merged

olanod merged 4 commits into
v5.xfrom
chore/v5-contract-interfaces

Conversation

@olanod

@olanod olanod commented Nov 6, 2026 •

Copy link
Copy Markdown

Small follow-up to #2799. The call-runtime example only needs one address variant, so it no longer pulls in sp-runtime and sp-io. Its public API and encoded calls stay the same. Also removes a few redundant dependency declarations.

Keep UAPI 9 for existing contracts: newer bindings change CallFlags::all() and drop RISC-V support.

Checks

Workspace checks at c6bf33ec (workspace code unchanged since):

  • cargo test --workspace --all-features --locked: 522 passed, 10 ignored, with the same QUICKCHECK_TESTS=0 setting as CI.
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passed.
  • Rust 1.81 checks for ink on host and no-std Wasm: passed.

Final example at 17813e7c:

  • cargo test --manifest-path integration-tests/public/call-runtime/Cargo.toml --all-features: all three E2E tests passed against substrate-contracts-node 0.41.

  • Example Clippy (--all-targets --all-features --locked -- -D warnings) passed.

  • Public metadata (methods, types and storage) matches the original example.

  • Formatting, manifest checks and locked lint-workspace dependency resolution passed.

  • At 440202b4, cargo contract build --release --manifest-path integration-tests/public/call-runtime/Cargo.toml passed with the maintained v5 tool; the SCALE-generated index cast has the same scoped lint allowance as the adjacent enums.

Independent code review passed. CI is still running.

@olanod
olanod marked this pull request as ready for review November 6, 2026 11:19
@codecov

codecov Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (v5.x@7f799fd). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             v5.x    #2800   +/-   ##
=======================================
  Coverage        ?   71.42%           
=======================================
  Files           ?      150           
  Lines           ?    15830           
  Branches        ?      260           
=======================================
  Hits            ?    11307           
  Misses          ?     4523           
  Partials        ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@olanod
olanod merged commit c8d21a2 into v5.x Nov 6, 2026
36 checks passed
@olanod
olanod deleted the chore/v5-contract-interfaces branch November 6, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant